<script setup>

const to= '/pages/work1/inteam'

const toNext = (target) =>{
  uni.navigateTo({
    url:target
  })
}

const to1= '/pages/work1/elebook'

const toNext1 = (target1) =>{
  uni.navigateTo({
    url:target1
  })
}

const to2= '/pages/work1/manangeteam'

const toNext2 = (target2) =>{
  uni.navigateTo({
    url:target2
  })
}


const to3= '/pages/work1/ziliao'

const toNext3 = (target3) =>{
  uni.navigateTo({
    url:target3
  })
}


const to4= '/pages/work1/myziliao'

const toNext4 = (target4) =>{
  uni.navigateTo({
    url:target4
  })
}

const to5= '/pages/work1/historyteam'

const toNext5 = (target5) =>{
  uni.navigateTo({
    url:target5
  })
}
</script>

<template>
  <view class="container">
    <view class="function-list">
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/1@2x.png" class="icon"></image>
          <text class="title" @click="toNext(to)">入队审批</text>
        </view>
        <view class="status-arrow-container">
          <text class="status red">1</text>
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/2@2x.png" class="icon"></image>
          <text class="title" @click="toNext1(to1)">电子证书</text>
        </view>
        <view class="status-arrow-container">
          <text class="status">已生成</text>
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/3@2x.png" class="icon"></image>
          <text class="title" @click="toNext2(to2)">队伍管理</text>
        </view>
        <view class="status-arrow-container">
          <text class="status">已拥有</text>
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/4@2x.png" class="icon"></image>
          <text class="title" @click="toNext3(to3)">资料查看/下载</text>
        </view>
        <view class="status-arrow-container">
          <text class="status">3个文件</text>
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/5@2x.png" class="icon"></image>
          <text class="title" @click="toNext4(to4)">我的资料</text>
        </view>
        <view class="status-arrow-container">
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
      <view class="function-item">
        <view class="icon-text-container">
          <image src="/static/image/6@2x.png" class="icon"></image>
          <text class="title" @click="toNext5(to5)">历史队伍</text>
        </view>
        <view class="status-arrow-container">
          <image src="/static/image/3.3.1.png" class="arrow"></image>
        </view>
      </view>
    </view>
    <view class="bottom-nav">
      <view class="nav-item">
        <image src="/static/image/activity_square.png" class="nav-icon"></image>
        <text class="nav-text">活动广场</text>
      </view>
      <view class="nav-item">
        <image src="/static/image/my_team.png" class="nav-icon"></image>
        <text class="nav-text">我的队伍</text>
      </view>
      <view class="nav-item active">
        <image src="/static/image/more_functions.png" class="nav-icon"></image>
        <text class="nav-text">更多功能</text>
      </view>
    </view>
  </view>
</template>

<style scoped>
.container {
  background-color: #F5F5F5;
  padding: 10px;
}

.function-list {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 5px 0 #E2E4EB;
}

.function-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #E2E4EB;
}

.function-item:last-child {
  border-bottom: none;
}

.icon-text-container {
  display: flex;
  align-items: center;
}

.icon {
  width: 36px;
  height: 36px;
}

.title {
  font-weight: 400;
  font-size: 15px;
  color: #212121;
  margin-left: 10px;
}

.status-arrow-container {
  display: flex;
  align-items: center;
}

.status {
  font-weight: 400;
  font-size: 12px;
  color: #999DA3;
  margin-right: 5px;
}

.red {
  color: red;
}

.arrow {
  width: 16px;
  height: 16px;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  background-color: #FFFFFF;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-text {
  font-size: 12px;
  color: #666666;
  margin-top: 5px;
}

.active.nav-text {
  color: #1E90FF;
}
</style>





















